<?php 
header('Content-Type:text/html; charset=windows-874');

$check_major_id = $_POST['check_major_id'];
include 'connect.php';

$sqls = "use eiso ";
$sqls .= " select * from major_profile ";
$sqls .= " where faculty_id = ".$check_major_id;

$result = mssql_query($sqls);

echo '<select id="re_diploma_stu_major" name="re_diploma_stu_major">';
	while($rs = mssql_fetch_array($result)) {
		echo '<option value='.$rs['major_id'].'>- '.$rs['major_name'].'</option>';
	}
echo '</select>';

?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />